package com.vhuomai.product.search.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author harris
 */
@Data
@Document(indexName = "name", type = "name", shards = 1, replicas = 0, refreshInterval = "-1")
public class ProductSearch {
    @Id
    private int id;
    private String name;
    private String headImage;
    private BigDecimal price;
    private int sales;
    private int viewsCount;
    private String searchText;
    private List<Integer> tagIds;
}
